-- GOODS_BONUS_RECHARGE

------------------------------
-- 充值奖励
-- @param user    玩家对象
-- @param args    market表中的bonus_args字段
-- @param multiBonus 奖励倍数
return function(user, args, multiBonus)
    -- 目前只有国王的宴会有食材奖励，偷个懒直接写这里
    -- 钻石奖励
    local gemBonus = { 2, "gem", args.gem * multiBonus };
    BonunsM.doBonus(gemBonus, "goods_bonus_recharge_10003");

    -- 食材奖励
    local food = ItemM.getFoodMaterial();
    for _,id in pairs(food) do
        BonunsM.doBonus({ 1, id, 20, }, "goods_bonus_recharge_10003");
    end
end
